<script setup lang="ts">
import EmptySvg from '@/assets/empty.svg?component';

export interface IProps {
  height?: string;
}

const props = withDefaults(defineProps<IProps>(), {
});
</script>

<template>
  <div class="table-empty" :style="{height: props.height}">
    <EmptySvg :width="80" :height="80" />
    <span>暂无数据</span>
  </div>
</template>

<style lang="less" scoped>
.table-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  &>span:last-child {
    margin-top: 10px;
    color: #ccc;
    font-size: 14px;
  }
}
</style>
